#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <QtDeclarative/QDeclarativeView>
#include <phonon/videoplayer.h>
#include <QDebug>
#include <QMdiArea>
#include <QMdiSubWindow>
#include <QtDeclarative/QDeclarativeView>
#include <QPaintEvent>
#include <QX11EmbedContainer>
#include <QX11EmbedWidget>

#include <vlc/libvlc.h>
#include <vlc/libvlc_media.h>
#include <vlc/libvlc_media_player.h>


class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected :
    //void resizeEvent( QResizeEvent *event );
    //void paintEvent(QPaintEvent *event);

private:

    libvlc_instance_t * inst;
    libvlc_media_player_t * mp;
    libvlc_media_t * m;

     Phonon::VideoPlayer * videoWidget;
     QWidget* vlcvideo;
     QDeclarativeView * qmlViewer;
     QX11EmbedWidget * embeedW;


     void playVlcVid();
     void embeedIt();
};

#endif // MAINWINDOW_H
